//
//  my_settingView.m
//  Bullet
//
//  Created by  on 2019/8/14.
//  Copyright © 2019 . All rights reserved.
//

#import "my_settingView.h"

@implementation my_settingView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = viewback_black;

        self.my_setting_tableView = [[UITableView alloc]initWithFrame:CGRectMake(0, 0, frame.size.width, frame.size.height-(kStatusBarHeight+44))];
        self.my_setting_tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
        self.my_setting_tableView.backgroundColor = viewback_black;
        [self addSubview:self.my_setting_tableView];

//        self.my_settingArr = [[NSArray alloc]initWithObjects:NSLocalizedString(@"认证", nil),NSLocalizedString(@"黑名单", nil),NSLocalizedString(@"历史浏览", nil),NSLocalizedString(@"草稿箱", nil),NSLocalizedString(@"检查更新", nil),NSLocalizedString(@"清理缓存", nil),NSLocalizedString(@"用户协议", nil),NSLocalizedString(@"隐私协议", nil), nil];
        if([[QZUserInfoModel share].iscreator intValue] == 1){
            self.my_settingArr = [[NSArray alloc]initWithObjects:@{@"titleName":@"我的钱包",@"imgName":@"ico_setting_qiangbao_wite"},@{@"titleName":@"创作中心",@"imgName":@"ico_setting_chuangzhuo_wite"},@{@"titleName":@"创作认证",@"imgName":@"ico_setting_renzheng_wite"},@{@"titleName":@"账号管理",@"imgName":@"ico_setting_zhanghao_wite"},@{@"titleName":@"隐私设置",@"imgName":@"ico_setting_yinsishezhi_wite"},@{@"titleName":@"黑名单",@"imgName":@"ico_setting_heimingdang_wite"},@{@"titleName":@"短剧（浏览，喜欢，收藏）",@"imgName":@"ico_setting_lishi_wite"},@{@"titleName":@"历史浏览",@"imgName":@"ico_setting_lishi_wite"},@{@"titleName":@"草稿箱",@"imgName":@"ico_setting_caogaoxian_wite"},@{@"titleName":@"意见反馈",@"imgName":@"ico_setting_yijingfangkui_wite"},@{@"titleName":@"关于APP",@"imgName":@"ico_setting_guanyu_wite"}, nil];
        }else{
//            @{@"titleName":@"背影设置",@"imgName":@"ico_setting_zhuti_wite"}
            self.my_settingArr = [[NSArray alloc]initWithObjects:@{@"titleName":@"我的钱包",@"imgName":@"ico_setting_qiangbao_wite"},@{@"titleName":@"创作中心",@"imgName":@"ico_setting_chuangzhuo_wite"},@{@"titleName":@"账号管理",@"imgName":@"ico_setting_zhanghao_wite"},@{@"titleName":@"隐私设置",@"imgName":@"ico_setting_yinsishezhi_wite"},@{@"titleName":@"黑名单",@"imgName":@"ico_setting_heimingdang_wite"},@{@"titleName":@"短剧（浏览，喜欢，收藏）",@"imgName":@"ico_setting_lishi_wite"},@{@"titleName":@"历史浏览",@"imgName":@"ico_setting_lishi_wite"},@{@"titleName":@"草稿箱",@"imgName":@"ico_setting_caogaoxian_wite"},@{@"titleName":@"意见反馈",@"imgName":@"ico_setting_yijingfangkui_wite"},@{@"titleName":@"关于APP",@"imgName":@"ico_setting_guanyu_wite"}, nil];
        }
        
        UIButton * textShowButtonTo1 = [[UIButton alloc]initWithFrame:CGRectMake(0, 0, 0, 0)];
        NSString * textShowButtonTitleTo1 = @"测试功能";
        [textShowButtonTo1 setTitle:textShowButtonTitleTo1 forState:UIControlStateNormal];
        NSInteger textShowArcTo1 = arc4random_uniform(22);
        NSLog(@"随机数：%ld", (long)textShowArcTo1);
    }
    return self;
}

@end
